package com.yeban.javase.day04.test01;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/12
 */
public class Test {

    public static void main(String[] args) {

        Test t = new Test();
        Plane plane = new Plane();
        Bird bird = new Bird();

        t.makeFly(plane);
        t.makeFly(bird);
    }

    public void makeFly(CanFly canFly) {
        canFly.fly();
    }
}
